<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateProductInvoicesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
//        Schema::create('product_invoices', function (Blueprint $table) {
//            $table->bigIncrements('id');
//            $table->unsignedBigInteger('order_id')->nullable();
//            $table->foreign('order_id')->references('id')->on('orders')->onDelete('set null');
//            $table->string('type', 40);
//            $table->string('username')->comment('名称');
//            $table->decimal('tax_money')->default(0);
//            $table->string('company_name')->comment('公司名称')->nullable();
//            $table->string('duty_paragraph')->comment('纳税人识别号')->nullable();
//            $table->string('description')->comment('备注')->nullable();
//            $table->timestamps();
//        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
//        Schema::dropIfExists('product_invoices');
    }
}
